<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.content.banner.AddBanner"%>
<%@page import="com.blockchain.console.service.financial.entity.RechargeQrEntity"%>
<%@page import="com.blockchain.console.servlets.financial.cz.Qrgl"%>
<%@page import="com.blockchain.common.enums.SbType"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
<link href="<%=controller.getStaticPath(request) %>/css/hhmmss.css" rel="stylesheet">
</head>
<%
	RechargeQrEntity qr = (RechargeQrEntity)request.getAttribute("rechargeQr");
	CURRENT_CATEGORY = "CWGL";
	CURRENT_SUB_CATEGORY = "CZQRGL";
%>
<body>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
	<div class="main clearfix">  
    <div class="wrap">
        <div class="r_main">
            <div class="home_main">
            	<div class="box box1 mb15">
                	<div class="atil">
                    	<h3>充值二维码</h3>
                  </div>
                    <div class="con">
                    <div class="clear"></div>
                    <form action="<%=controller.getURI(request, Qrgl.class)%>" method="post"  enctype="multipart/form-data" onsubmit="return checkImage();"  class="form1">
                    <ul class="cell yw_jcxx">
                    <li>
                        <div class="til"><span class="red">&nbsp;</span></div>
                        <div class="info orange">
                        <%StringHelper.filterHTML(out, controller.getPrompt(request, response, PromptLevel.ERROR));%>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>充值二维码1：</div>
                        <div class="info orange">
                         <img style="width: 50px;height: 50px;" src="<%if(!StringHelper.isEmpty(qr.fir)){%><%=fileStore.getURL(qr.fir)%><%}%>">
                        <p class="mb10"><input  type="file" name="imagefir" value="">（建议尺寸：宽318像素，高318像素）</p>
                        <p id="errorImage">&nbsp;</p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>充值二维码2：</div>
                        <div class="info orange">
                         <img style="width: 50px;height: 50px;" src="<%if(!StringHelper.isEmpty(qr.sec)){%><%=fileStore.getURL(qr.sec)%><%}%>">
                        <p class="mb10"><input  type="file" name="imagesec" value="">（建议尺寸：宽318像素，高318像素）</p>
                        <p id="errorImage">&nbsp;</p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <%-- <li>
                        <div class="til"><span class="red">*</span>充值二维码3：</div>
                        <div class="info orange">
                         <img style="width: 50px;height: 50px;" src="<%if(!StringHelper.isEmpty(qr.thir)){%><%=fileStore.getURL(qr.thir)%><%}%>">
                        <p class="mb10"><input  type="file" name="imagethir" value="">（建议尺寸：宽318像素，高318像素）</p>
                        <p id="errorImage">&nbsp;</p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>充值二维码4：</div>
                        <div class="info orange">
                         <img style="width: 50px;height: 50px;" src="<%if(!StringHelper.isEmpty(qr.four)){%><%=fileStore.getURL(qr.four)%><%}%>">
                        <p class="mb10"><input  type="file" name="imagefour" value="">（建议尺寸：宽318像素，高318像素）</p>
                        <p id="errorImage">&nbsp;</p>
                        </div>
                        <div class="clear"></div>
                    </li> --%>
               		</ul>
                    <div class="tc w220 pt20"><button type="submit" class="btn4 mr30 sumbitForme" style="cursor: pointer;" fromname="form1">提交</button>
                    	
                    </div>
                	<div class="clear"></div>
                    </form>
                    <div class="clear"></div>                    
                  </div>
                </div>
              <div class="box2 clearfix"></div>
            </div>
        </div>   
    </div>
 	<%@include file="/WEB-INF/include/left.jsp" %>
	</div>
	</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%> 
	<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/js/validation.js"></script>
	<script type="text/javascript">

	
	
	function checkImage(){
		var suffix = $("input:file").val();
		if('' == suffix || suffix == null || suffix.length == 0){
			return true;
		}
		var img = ['jpg','png','jpeg','gif','ico'];
		for(var i=0; i<img.length; i++){
			if(suffix.length > img[i].length && img[i] == suffix.substring(suffix.length-img[i].length)){
				$("#errorImage").removeClass("red");
				$("#errorImage").html("&nbsp;");
				return true;
			}
		}
		$("#errorImage").addClass("red");
		$("#errorImage").html("您插入的图片格式不正确");	
		return false;
	}
	
	
	
	</script>
</body>
</html>